﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/Home.Master" AutoEventWireup="true" CodeBehind="Order.aspx.cs" Inherits="TTMarketing.Admin.Order" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMain" runat="server">
<asp:Panel ID="Panel1" runat="server" Width="100%">
        <fieldset>
            <legend>Thông tin đơn hàng</legend>
            
            <table width="100%">
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName" runat="server" Text="Họ tên khách hàng"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblFullName" runat="server" Text="N/A"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName0" runat="server" Text="Email"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblEmail" runat="server" Text="N/A"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName1" runat="server" Text="Điện thoại"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblPhone" runat="server" Text="N/A"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName2" runat="server" Text="Địa chỉ"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblAddress" runat="server" Text="N/A"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName3" runat="server" Text="Ngày tháng"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblDate" runat="server" Text="N/A"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName4" runat="server" Text="Nội dung"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblDetail" runat="server" Text="N/A"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblProductList" runat="server" Text="Sản phẩm"></asp:Label>
                        <asp:ObjectDataSource ID="odsOrderDetail" runat="server" SelectMethod="getAll" 
                            TypeName="TTBusiness.clsBSOrderDetail"></asp:ObjectDataSource>
                    </td>
                    <td>
                        <telerik:RadGrid ID="RadGrid2" runat="server" AllowPaging="True" 
                            AllowSorting="True" DataSourceID="odsOrderDetail" GridLines="None" 
                            ShowFooter="True">
                            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                                <Selecting AllowRowSelect="True" />
                            </ClientSettings>
                            <MasterTableView AutoGenerateColumns="False" DataSourceID="odsOrderDetail">
                                <RowIndicatorColumn>
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn>
                                    <HeaderStyle Width="20px" />
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" 
                                        SortExpression="Id" UniqueName="Id">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ProductId" DataType="System.Int32" 
                                        HeaderText="ProductId" SortExpression="ProductId" UniqueName="ProductId">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Count" DataType="System.Int32" 
                                        HeaderText="Count" SortExpression="Count" UniqueName="Count">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Price" DataType="System.Single" 
                                        HeaderText="Price" SortExpression="Price" UniqueName="Price">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="OrderId" DataType="System.Int32" 
                                        HeaderText="OrderId" SortExpression="OrderId" UniqueName="OrderId">
                                    </telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                            <HeaderContextMenu EnableAutoScroll="True">
                            </HeaderContextMenu>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </table>
            <br />
            <asp:HiddenField ID="hfId" runat="server" />
            <br />
            
        </fieldset>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Width="100%">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" 
            AllowSorting="True" DataSourceID="odsOrder" GridLines="None" 
            ShowFooter="True">
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="False" DataSourceID="odsOrder">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" 
                        SortExpression="Id" UniqueName="Id">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Date" HeaderText="Date" 
                        SortExpression="Date" UniqueName="Date" DataType="System.DateTime">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Detail" HeaderText="Detail" 
                        SortExpression="Detail" UniqueName="Detail">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FullName" HeaderText="FullName" 
                        SortExpression="FullName" UniqueName="FullName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Email" HeaderText="Email" 
                        SortExpression="Email" UniqueName="Email">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Phone" HeaderText="Phone" 
                        SortExpression="Phone" UniqueName="Phone">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Address" HeaderText="Address" 
                        SortExpression="Address" UniqueName="Address">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AccountId" DataType="System.Int32" 
                        HeaderText="AccountId" SortExpression="AccountId" UniqueName="AccountId">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Action" UniqueName="TemplateColumn">
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton1" runat="server" 
                                ImageUrl="~/Admin/Images/Button/Edit_Grid.gif" />
                            &nbsp;&nbsp;<asp:ImageButton ID="ImageButton2" runat="server" 
                                ImageUrl="~/Admin/Images/Button/Delete_Grid.gif" />
                            &nbsp;
                        </ItemTemplate>
                        <ItemStyle Width="40px" />
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <HeaderContextMenu EnableAutoScroll="True">
            </HeaderContextMenu>
        </telerik:RadGrid>
        <asp:ObjectDataSource ID="odsOrder" runat="server" SelectMethod="getAll" 
            TypeName="TTBusiness.clsBSOrder"></asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
